package com.example.t410.mapper;

import com.example.t410.DTO.IntroductionPCCDTO;
import com.example.t410.entity.Doctor;
import com.example.t410.entity.PsychologicalCounselingCenter;
import com.example.t410.entity.TimeSlot;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IntroductionMapper {

    List<PsychologicalCounselingCenter> findPCCs(IntroductionPCCDTO psychologicalCounselingCenter);
    @Select("select * from doctor where pcc_id = #{pccId}")
    List<Doctor> findDoctors(Long pccId);

    @Select("select * from time_slot where pcc_id=#{pccId}")
    List<TimeSlot> findTime(Long pccId);
    @Select("select * from psychological_counseling_center where id = #{id}")
    PsychologicalCounselingCenter findPCCById(Long id);
}
